package com.founder.cebxkit;

public class CEBXActionOpWrapper {
	private long mXEKActionOp;
	
	// Type类型                                                                                                              
	public static final int XEK_UNKNOWN_ACTION		= 0;
	public static final int XEK_GOTO_ACTION			= 1;
	public static final int XEK_GOTOR_ACTION		= 2;
	public static final int XEK_LAUNCH_ACTION		= 3;
	public static final int XEK_URI_ACTION			= 4;
	public static final int XEK_SOUND_ACTION		= 5;
	public static final int XEK_MOVIE_ACTION		= 6;
	public static final int XEK_SUBMIT_ACTION		= 7;
	public static final int XEK_RESET_ACTION		= 8;
	public static final int XEK_RUNSCRIPT_ACTION	= 9;
	
	/**
	 * 构造函数，负责各种初始值。
	 * @return
	 */
	public CEBXActionOpWrapper() {
		mXEKActionOp = 0;
	}

	/**
	 * 获取ActionOp的类型。
	 * @return
	 */
	public native int GetType();
	
	/**
	 * 获取Goto Action的跳转目标。
	 * @param gotodest		跳转目标。
	 * @return		成功True，其他False
	 */
	public native boolean GetGotoDest(CxGotoDest gotodest);
	
	/**
	 * 获取URI Action的URI地址。
	 * @return
	 */
	public native String GetURI();
	
	/**
	 * 获取URI Action的Base地址。
	 * @return
	 */
	public native String GetBase();
	
	/**
	 * 设置XEK层图元引用对象句柄。
	 * @param handle 	图元引用对象句柄
	 * @return
	 */
	public void SetXEKActionOp(long handle) {
		mXEKActionOp = handle;
	}
	
	/**
	 * 获取XEK层图元引用对象句柄。
	 * @return
	 */
	public long GetXEKActionOp() {
		return mXEKActionOp;
	}
}
